//
//  Inherit.java
//  joosVM
//
//  Created by Smári Waage on 15.10.2009.
//  Copyright 2009 smari.org. All rights reserved.
//
package regTests;

public class Inherit extends Parent {
	
	
	public int fooAbstract(){
		return 1;
	}
	public int a(){
		return 2;
	}

	public static void main(String[] args) {
		System.out.println("Starting test Abstact");
		Parent a1 = new Inherit();
		Inherit a2 = new Inherit();
		
		
		testAssert(2,a1.a());
		testAssert(2,((Parent)a2).a());
		testAssert(1,a1.fooAbstract());
		
	}
}


